package com.ca.project.Server.Modules.RepairImg.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @TableName repair_img
 */
@TableName(value = "repair_img")
@Data
public class RepairImg implements Serializable {
    /**
     * 维修图片上传id
     */
    @TableId(value = "r_img_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rImgId;

    /**
     * 此维修订单创建人以及图片上传的唯一凭证均用openid
     */
    @TableField(value = "r_img_openid")
    private String rImgOpenid;

    /**
     * 此维修订单的图片上传地址
     */
    @TableField(value = "r_img_url")
    private String rImgUrl;

    /**
     * 图片的key值
     */
    @TableField(value = "r_img_key")
    private String rImgKey;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}